package com.archgeek.java.inoutstream;

import org.junit.Test;

public class DataOutputBufferTest {

    @Test
    public void test1() {

        try (DataOutputBuffer buffer = new DataOutputBuffer(1000)) {

            buffer.reset();
            buffer.writeChars("你好");
            buffer.writeChar('\t');
            buffer.writeInt(23);
            buffer.writeChar('\n');

            System.out.println(buffer.getLength());
            System.out.println(buffer.getData());




        } catch (Exception e) {
            e.printStackTrace();
        }



    }

}
